package com.zhiyou.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhiyou.dao.UserDao;
import com.zhiyou.service.UserService;

@Service
public class UserServiceImpl implements UserService {
    //调用方法需要注入对象
	//否则会报空指针异常
	@Autowired
	UserDao userDao;
	@Override
	public boolean  login(String username,String pwd) {
		System.out.println("====到达了service层");
		System.out.println("调用了 userdao 方法");
        userDao.login(username,pwd);
        return true;
	}

}
